import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop018_删除属性组"
# 1.点击“删除”按钮，确认删除，删除成功。；删除属性分组成功。
firefox = openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox, "商品管理", "商品属性","属性分组")
firefox.find_element_by_link_text("删除").click()
firefox.switch_to.alert.accept()
# 断言
if firefox.find_element_by_xpath("//form/table").text!="好好学习":
    writeLog("%s 测试通过" % testCase)
else:
    writeLog("%s 测试失败" % testCase)
firefox.quit()
